/*
 * Copyright (c) 2017. 杭州端点网络科技有限公司.  All rights reserved.
 */

package com.jiantong.user.service;

import com.jiantong.user.model.BreedFactory;
import com.jiantong.user.model.ButcherFactory;
import com.jiantong.user.model.Government;
import com.jiantong.user.model.Organization;
import io.terminus.common.model.Response;

/**
 * @author : panxin
 */
public interface OrganizationWriteService {

    /**
     * 创建政府信息
     *
     * @param government 政府信息
     * @return 新建ID
     */
    Response<Long> createGovernment(Government government);

    /**
     * 创建屠宰场信息
     *
     * @param factory 屠宰场信息
     * @return 新建ID
     */
    Response<Long> createButcher(ButcherFactory factory);

    /**
     * 创建养殖场信息
     *
     * @param factory 养殖场信息
     * @return 新建ID
     */
    Response<Long> createBreeder(BreedFactory factory);

    Response<Long> create(Organization organization);

    Response<Boolean> update(Organization organization);
}
